package com.program.facesigninsystem.entity;

import org.springframework.stereotype.Service;

@Service
public class UserInfo {
    private String uid;
    private String openid;
    private int type;
    private String name;
    private String studentId;//新增学生学号
    private String nickname;
    private String sex;
    private int age;
    private String address;
    private String phone;
    private String email;
    private String university;
    private String academy;
    private String major;
    private String Class;
    private String token;
    private String avatar;
    private String uid1;
    private String password;
    private String salt;
    private int roleId;
    private int bindId;
    private int isExamine;
    private int reward_points;

    public UserInfo() {

    }

    public UserInfo(String uid){
        this.uid = uid;
    }

    public UserInfo(String uid, String openid, String name, String studentId, String nickname, int type, String sex, int age, String address, String phone, String email, String university, String academy, String major, String aClass, String avatar, String uid1, int bindId) {
        this.uid = uid;
        this.openid = openid;
        this.name = name;
        this.studentId = studentId;
        this.nickname=nickname;
        this.type=type;
        this.sex = sex;
        this.age = age;
        this.address = address;
        this.phone = phone;
        this.email = email;
        this.university = university;
        this.academy = academy;
        this.major = major;
        Class = aClass;
        this.avatar = avatar;
        this.uid1 = uid1;
        this.bindId = bindId;
    }

    public int getRoleId() {
        return roleId;
    }

    public void setRoleId(int roleId) {
        this.roleId = roleId;
    }

    public int getBindId() {
        return bindId;
    }

    public void setBindId(int bindId) {
        this.bindId = bindId;
    }

    public int getIsExamine() {
        return isExamine;
    }

    public void setIsExamine(int isExamine) {
        this.isExamine = isExamine;
    }

    public String getUid1() {
        return uid1;
    }

    public void setUid1(String uid1) {
        this.uid1 = uid1;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public int getReward_points() {
        return reward_points;
    }

    public void setReward_points(int reward_points) {
        this.reward_points = reward_points;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public void setOpenid(String account) {
        this.openid = account;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setType(int type) {
        this.type = type;
    }

    public void setClass(String Class) { this.Class = Class; }

    public void setAcademy(String academy) {
        this.academy = academy;
    }

    public void setUniversity(String university) {
        this.university = university;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public String getUid() {
        return uid;
    }

    public String getOpenid() {
        return openid;
    }

    public String getName() {
        return name;
    }

    public String getStudentId() {
        return studentId;
    }

    public void setStudentId(String studentId) {
        this.studentId = studentId;
    }

    public String getNickname(){return nickname;}

    public int getType() {
        return type;
    }

    //Object类中本身就有getClass()方法
    //public String getclass() { return Class; }

    public String getAcademy() {
        return academy;
    }

    public String getUniversity() {
        return university;
    }

    public String getMajor() {
        return major;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
}